import https from '@/plugins/luch-request_0.0.7/request'

// 获取活动列表
export const getlist = data => {
	return https.get('/apihkds/api/promotion/getlist', data)
}

// 获取活动类型
export const getClasslist = data => {
	return https.get('/apihkds/api/promotion/classlist', data)
}

// 获取活动详情
export const getDetail = data => {
	return https.get('/apihkds/api/promotion/getdetail', data)
}

// 新增活动
export const add = data => {
	return https.post('/apihkds/api/promotion/add', data)
}

// 编辑活动
export const edit = data => {
	return https.post('/apihkds/api/promotion/edit', data)
}

// 删除活动
export const del = data => {
	return https.post('/apihkds/api/promotion/delete', data)
}

// 活动排序
export const sortorder = data => {
	return https.post('/apihkds/api/promotion/sortorder', data)
}
